package com.example.demospring.business.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demospring.business.entity.ImgSave;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ImgsMapper extends BaseMapper<ImgSave> {

    @Select("select * from img_save where date(img_date) = #{date}")
    List<ImgSave> getImgByDate(String date);

    Integer addImg(ImgSave img);

}
